package bancosys.tec.datadigester.fileregistry.domain.enumx;

import jmine.tec.datadigester.DataDigesterMessages;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * @author piercio
 */
public enum Frequency {

    NONE(DataDigesterMessages.FREQUENCY_NONE.create()),

    DAILY(DataDigesterMessages.FREQUENCY_DAILY.create()),

    MONTHLY(DataDigesterMessages.FREQUENCY_MONTHLY.create());

    private LocalizedMessageHolder message;

    /**
     * Construtor
     * 
     * @param message message
     */
    private Frequency(LocalizedMessageHolder message) {
        this.message = message;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return this.message.getMessage();
    }
}
